<?php class Admin extends Controller
{

	function Admin()
	{
		parent::Controller();
	}

	function index()
	{
		
		$this->load->view('admin/admin_view');
	}
	
	function categories()
	{
		$data['list'] = $this->db->get('categories');
		
		$this->load->view('admin/categories_view',$data);
	}
	
}
?>